$(document).ready(function(){
	$('#img-featured li a').click(function(){
		var url = $(this).attr('href');
		//$this la doi tuong jquery chua bien $(this) de truy cap nhanh hon
		//url la bien chua duong dan cua anh do ta lay thuoc tinh href cua bien $this
		//alert(url);//bien url dung de nho' duong link khi  minh click
		$('#img-featured li a').removeClass('img-selected');
		$(this).addClass('img-selected');
		
		$('.img-imageBox')
		.children('img')
		.fadeOut(400, function(){
			$(this) //this nay huong toi ham de quy children('img')
			.attr('src',url) //thay src = url
			.load(function(){//va load nguoc lai vao trang luc nay
				$(this).fadeIn(400); //this nay dang huong toi  .attr('src',url)
			});
		});
		return false;//de khong chuyen sang trang khac
	});
});
		